<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>分类管理</title>
    <script type='text/javascript' src='http://localhost/C39/waimai/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/C39/waimai/hdphp/hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<link href='http://localhost/C39/waimai/hdphp/hdjs/css/hdvalidate.css' rel='stylesheet' media='screen'>
<script src='http://localhost/C39/waimai/hdphp/hdjs/js/hdjs.js'></script>
<script src='http://localhost/C39/waimai/hdphp/hdjs/js/hdvalidate.js'></script>
<script src='http://localhost/C39/waimai/hdphp/hdjs/js/slide.js'></script>
<script src='http://localhost/C39/waimai/hdphp/hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
HOST = '<?php echo $GLOBALS['user']['HOST'];?>';
ROOT = '<?php echo $GLOBALS['user']['ROOT'];?>';
WEB = '<?php echo $GLOBALS['user']['WEB'];?>';
URL = '<?php echo $GLOBALS['user']['URL'];?>';
APP = '<?php echo $GLOBALS['user']['APP'];?>';
COMMON = '<?php echo $GLOBALS['user']['COMMON'];?>';
HDPHP = '<?php echo $GLOBALS['user']['HDPHP'];?>';
HDPHPDATA = '<?php echo $GLOBALS['user']['HDPHPDATA'];?>';
HDPHPEXTEND = '<?php echo $GLOBALS['user']['HDPHPEXTEND'];?>';
MODULE = '<?php echo $GLOBALS['user']['MODULE'];?>';
CONTROLLER = '<?php echo $GLOBALS['user']['CONTROLLER'];?>';
ACTION = '<?php echo $GLOBALS['user']['ACTION'];?>';
STATIC = '<?php echo $GLOBALS['user']['STATIC'];?>';
HDPHPTPL = '<?php echo $GLOBALS['user']['HDPHPTPL'];?>';
VIEW = '<?php echo $GLOBALS['user']['VIEW'];?>';
PUBLIC = '<?php echo $GLOBALS['user']['PUBLIC'];?>';
CONTROLLERVIEW = '<?php echo $GLOBALS['user']['CONTROLLERVIEW'];?>';
HISTORY = '<?php echo $GLOBALS['user']['HISTORY'];?>';
</script>
    <link href='http://localhost/C39/waimai/hdphp/Extend/Org/bootstrap/css/bootstrap.min.css' rel='stylesheet' media='screen'>
<script src='http://localhost/C39/waimai/hdphp/Extend/Org/bootstrap/js/bootstrap.min.js'></script>
                <!--[if lte IE 6]>
                <link rel="stylesheet" type="text/css" href="http://localhost/C39/waimai/hdphp/Extend/Org/bootstrap/ie6/css/bootstrap-ie6.css">
                <![endif]-->
                <!--[if lt IE 9]>
                <script src="http://localhost/C39/waimai/hdphp/Extend/Org/bootstrap/js/html5shiv.min.js"></script>
                <script src="http://localhost/C39/waimai/hdphp/Extend/Org/bootstrap/js/respond.min.js"></script>
                <![endif]-->
</head>
<body>
<style type="text/css">
    select{border:solid 1px #eee;border-radius: 5px;}
</style>
<div class="wrap">

<div class="page-header">
  <h3>添加商铺 <small>Add the shops</small></h3>
</div>
   
<form action="" method="post" enctype="multipart/form-data">
   <table class="table table-bordered">
       <tr>
           <td><label for="exampleInputEmail1">商铺名称</label></td>
           <td><input type="text" name="stname" class="form-control" id="exampleInputEmail1" placeholder="商铺名称"></td>
           <td><p class="help-block">1-20个字节</p></td>
           
       </tr>

       <tr>
           <td><label for="exampleInputEmail1">满汉全席</label></td>
           <td><input type="text" class="form-control" id="exampleInputEmail1" placeholder="配送价" name="kind"></td>
           <td><p class="help-block">您经营商铺的菜式  如：东北菜 川菜</p></td>
        </tr>

        <tr>
           <td><label for="exampleInputEmail1">所在的栏目</label></td>
           <td>
                <select name="cnid" id="" style="width:110px;height:35px;font-size:14px;">
                <option value="0">顶级分类</option>
                <?php if(is_array($colums)){?><?php  foreach($colums as $key=>$v){ ?>
                    
                
                    <option value="<?php echo $v['cnid'];?>"><?php echo $v['title'];?></option>
                    <?php }}?>
                </select>
                </td>
           <td><p class="help-block">选择栏目分类</p></td>
           
       </tr>
        <tr>
           <td><label for="exampleInputEmail1">地区选择</label></td>
           <td>
               <select name="did" id="" style="width:110px;height:35px;font-size:14px;">
               <option value="0">顶级分类</option>
                <?php if(is_array($district)){?><?php  foreach($district as $key=>$v){ ?>
                    
                
                    <option value="<?php echo $v['did'];?>"><?php echo $v['_name'];?></option>
                    <?php }}?>
                </select>
            </td>
           <td><p class="help-block">您店铺的所在区域</p></td>
           
       </tr>
        <tr>
            <td><label for="exampleInputEmail1">营业开始时间和结束时间</label></td>
            <td><input style="width:110px;float:left" type="text" class="form-control" id="exampleInputEmail1" name="businessstart" placeholder="开始时间"><p style="width: 6px;float: left" class="help-block">-</p><input style="width:110px;float:left" type="text" class="form-control" id="exampleInputEmail1" name="businessend" placeholder="结束时间"></td>
            <td><p class="help-block">如:8:30-18:30</p></td>
        </tr>


       <tr>
           <td><label for="exampleInputEmail1">选择提供优惠</label></td>
           <td> <label class="checkbox-inline">

            <?php if(is_array($tagName)){?><?php  foreach($tagName as $key=>$v){ ?>
            <label class="checkbox-inline">
            
             <input name="attr[]" type="checkbox" id="inlineCheckbox1" value="<?php echo $v['tid'];?>"><?php echo $v['tname'];?> 
            </label>
          <?php }}?>

          <!--   <label class="checkbox-inline">
              <input name="favorable[]" type="checkbox" id="inlineCheckbox2" value="免">免配送费
            </label>
            <label class="checkbox-inline">
              <input name="favorable[]" type="checkbox" id="inlineCheckbox3" value="票">支持开发票
            </label> -->

            </td>
           <td><p class="help-block">可以多选</p></td>
           
       </tr>

       <tr>
           <td><label for="exampleInputEmail1">商铺地址</label></td>
           <td><input type="text" class="form-control" id="exampleInputEmail1" placeholder="商铺地址" name="storesite"></td>
           <td><p class="help-block">商铺详细地址</p></td>
           
       </tr>

       <tr>
           <td><label for="exampleInputEmail1">地铁地址</label></td>
           <td><input type="text" class="form-control" id="exampleInputEmail1" placeholder="地铁地址" name="metro"></td>
           <td><p class="help-block">地铁地址</p></td>
           
       </tr>

       <tr>
           <td><label for="exampleInputEmail1">起送价格</label></td>
           <td><input type="text" class="form-control" id="exampleInputEmail1" placeholder="起送价格" name="risedelivery"></td>
           <td><p class="help-block">购买金额到达到起送价时才能进行配送</p></td>
           
       </tr>

       <tr>
           <td><label for="exampleInputEmail1">配送价</label></td>
           <td><input type="text" class="form-control" id="exampleInputEmail1" placeholder="配送价" name="delivery"></td>
           <td><p class="help-block">配送的费用</p></td>
        </tr>


        <tr>
           <td><label for="exampleInputEmail1">平均送达的时间</label></td>
           <td><input type="text" class="form-control" id="exampleInputEmail1" placeholder="平均送达的时间(分钟)" name="deliverytime"></td>
           <td><p class="help-block">购买金额到达到起送价时才能进行配送</p></td>
        </tr>

        <tr>
            <td><label for="exampleInputEmail1">商铺缩略图</label></td>
            <td><input type="file" name="upload" id="exampleInputFile"></td>
            <td><p class="help-block">上传缩略图</p></td>
        </tr>

        <tr>
            <td><label for="exampleInputEmail1">商铺公告</label></td>
            <td><textarea rows="9" cols="90" id="exampleInputFile" name="bulletin"></textarea></td>
            <td><p class="help-block">商铺的公告</p></td>
        </tr>

   </table>
   
   
         <button type="submit" class="btn btn-primary">提交</button>
      
    </form>
</div>
</body>
</html>